package svl.videoplayer.controls 
{
	import svl.videoplayer.assets.AssetManager;	
	
	import flash.display.Bitmap;
	import flash.display.Sprite;	

	/**
	 * @author sanderl
	 */
	public class VideoControls extends Sprite 
	{
		private var buttonWidth:Number = 20;
		private var buttonHeight:Number = 20;
		private var spacingX:Number;
		private var spacingY:Number;
		
		public function VideoControls()
		{
			spacingX = buttonWidth/4;
			spacingY = buttonHeight/4;
			
			var stop:Bitmap = new AssetManager.StopButton;
			addChild(stop);
			
//			playButton.graphics.beginFill(0x4a4a4a);
//			playButton.graphics.drawRect(0, 0, buttonWidth, buttonHeight);
//			playButton.graphics.beginFill(0xefefef);
//			playButton.graphics.moveTo(spacingX, spacingY);
//			playButton.graphics.lineTo(spacingX*3, spacingY*2);
//			playButton.graphics.lineTo(spacingX, spacingY*3);
//			playButton.graphics.lineTo(spacingX, spacingY);
//			playButton.graphics.endFill();
//			addChild(playButton);
//			
//			stopButton.graphics.beginFill(0x4a4a4a);
//			stopButton.graphics.drawRect(0, 0, buttonWidth, buttonHeight);
//			stopButton.graphics.beginFill(0xefefef);
//			stopButton.graphics.moveTo(spacingX, spacingY);
//			stopButton.graphics.lineTo(spacingX*3, spacingY);
//			stopButton.graphics.lineTo(spacingX*3, spacingY*3);
//			stopButton.graphics.lineTo(spacingX, spacingY*3);
//			stopButton.graphics.lineTo(spacingX, spacingY);
//			stopButton.graphics.endFill();
//			stopButton.x = playButton.width + spacingX;
//			addChild(stopButton);
		}
	}
}
